﻿using System;

namespace DanielVaughan.Services
{
	/// <summary>
	/// <see cref="EventArgs"/> for 
	/// the <seealso cref="ISettingsService.SettingChanged"/> event.
	/// </summary>
	public class SettingChangeEventArgs : EventArgs
	{
		/// <summary>
		/// Gets or sets the name of the setting.
		/// </summary>
		/// <value>The name of the setting.</value>
		public string SettingName { get; private set; }

		/// <summary>
		/// Gets or sets the setting value.
		/// </summary>
		/// <value>The setting value.</value>
		public object SettingValue { get; private set; }

		/// <summary>
		/// Initializes a new instance of the <see cref="SettingChangeEventArgs"/> class.
		/// </summary>
		/// <param name="settingName">Name of the setting.</param>
		/// <param name="settingValue">The setting value.</param>
		public SettingChangeEventArgs(string settingName, object settingValue)
		{
			SettingName = settingName;
			SettingValue = settingValue;
		}
	}
}